package com.idanchuang.count.service.api.request.query;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Richard_yyf
 * @version 1.0 2021/9/18
 */
public class CountBatchQuery {


    /**
     * 业务场景标识
     * 服务接入时，由计数服务根据计数业务场景分配
     * 要在计数服务注册过的bizCode，否则调用会失败
     */
    @NotNull
    private String bizCode;

    /**
     * 业务流水号
     * 对应业务下计数对象的业务标识
     * 如 贴子Id 等
     * bizId批量查询不超过20个
     */
    @NotEmpty
    private List<String> bizNos;


    public CountBatchQuery() {
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public List<String> getBizNos() {
        return bizNos;
    }

    public void setBizNos(List<String> bizNos) {
        this.bizNos = bizNos;
    }

    @Override
    public String toString() {
        return "CountBatchQuery{" +
                "bizCode='" + bizCode + '\'' +
                ", bizNos=" + bizNos +
                '}';
    }
}
